/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.menu.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商品Entity
 * @author dby
 * @version 2020-07-12
 */
public class Goods3 extends DataEntity<Goods3> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 商品名称
	private String price;		// 商品价格
	private String url;		// 首图
	
	public Goods3() {
		super();
	}

	public Goods3(String id){
		super(id);
	}

	@Length(min=1, max=100, message="商品名称长度必须介于 1 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}
	
	@Length(min=1, max=100, message="首图长度必须介于 1 和 100 之间")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
}